package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author Ly
 * @Data 2023/2/20 17:15
 * @ClassName LoginEntity
 */
@Data
@TableName("wm_user")
public class LoginEntity {
    @TableId(type = IdType.AUTO)
    private Integer	id;
    @TableField(exist = false)
    private  String querenemail;
    private int 	apUserId;
    private int 	apAuthorId;
    private String  	name;
    private String   	password;
    private String   	salt;
    private String   	nickname;
    private String  	image;
    private String   	location;
    private String   	phone;
    private int   	status;
    private String  	email;
    private int  	type;
    private int   	score;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime loginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime   createdTime;
}
